<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JavaScript 数据类型</title>
</head>
<body>
<h2>Null</h2>
<p>Null 值是空，但数据类型是对象；可以通过设置值为 null 清空对象</p>

<p id="demo"></p>

<script>
  var person = {firstName:"Bill", lastName:"Gates", age:62, eyeColor:"blue"};
  person = null;
  document.getElementById("demo").innerHTML = typeof person;
</script>

</body>
</html>

<!--
输出结果：
object
-->